<#--
***********************************************
* 正元J2EE开发平台
* 声明：金华正元计算机工程有限公司版权所有,
* 名称：homePage_unit.ftl
* 功能：单位首页
*
* 来源：系统登录后打开的页面，及点击“首页”按钮打开的页面
* 去向：
*
*修改日志：
*			修改者及修改内容简述。
*	姓名：项春科				时间：2010.7.1	内容：新建
****************************************************
-->
<#include "/common/pager_style/commonFrame.ftl" encoding="UTF-8">

<link rel="stylesheet" href="${request.contextPath}/skin/${skin}/css/homepage.css" media="all"  type="text/css"/>
<link rel="stylesheet" href="${request.contextPath}/skin/${skin}/css/list.css" media="all" type="text/css"/>
<script type="text/javascript" src="${request.contextPath}/js/DateUtil.js"></script>
<script type="text/javascript" src="${request.contextPath}/js/jquery/zyplugin/dialog/dialog.js"></script>
<script type="text/javascript" src="${request.contextPath}/js/jquery/zyplugin/appplugins/jquery.appPlugins.js"></script>
<script type="text/javascript" src="${request.contextPath}/resources/dhtmlxScheduler/dhtmlxscheduler.js"></script>
<script type="text/javascript" src="${request.contextPath}/resources/dhtmlxScheduler/lang/locale_cn.js"></script>
<script type="text/javascript" src="${request.contextPath}/resources/dhtmlxScheduler/ext/dhtmlxscheduler_minical.js"></script>
<script type="text/javascript" src="${request.contextPath}/resources/artDialog/jquery.artDialog.source.js?skin=chrome"></script>
<script type="text/javascript" src="${request.contextPath}/resources/artDialog/plugins/iframeTools.js"></script>
<link rel="stylesheet" href="${request.contextPath}/resources/dhtmlxScheduler/dhtmlxscheduler.css" type="text/css" title="no title">
<link rel="stylesheet" href="${request.contextPath}/resources/dhtmlxScheduler/ext/dhtmlxscheduler_ext.css" type="text/css" title="no title">
<style type="text/css">
.s{ background:url(${request.contextPath}/skin/${skin}/css/buttons.gif)  center no-repeat; width:83px; height:24px; text-align:center; line-height:24px}
.button{ text-decoration:none;  font-size:16px}
	A.button:link{font-size:16px; FONT-FAMILY:; text-decoration:none;  line-height:24px}
	A.button:visited{font-size:16px; FONT-FAMILY:; text-decoration:none; line-height:24px}
	A.button:hover{font-size:16px; FONT-FAMILY:; text-decoration:none; line-height:24px}
.layoutTbl .modbox .modtitle .more {background:none;}
</style>

<script type="text/javascript">
//<![CDATA[
$(function(){
	$("#setting").css("top",-$("#panel").outerHeight(true));
	$("#tips a").click(function(){
		if($("#setting").offset().top<0){
			$("#setting").animate( { top: '0' });
			$("body").animate({"padding-top":25+$("#panel").outerHeight(true)+"px"});
		}
		else{
			$("#setting").animate( { top: -$("#panel").outerHeight(true) });
			$("body").animate({"padding-top":"25px"});
		}
	});

});
// 用于更新页面的待办事项内容。用户办理完文档后，点击“关闭”时调用
function refreshPage(){
	window.location.reload();
}

var loginInfo='${(currentUser.s1)?if_exists}';
var xxsb_url="http://localhost:9090/jh_xxsb/";
var leaderRowsNumber;
<#if (currentUser.orgId)?exists &&
	(currentUser.orgId==1||currentUser.orgId==2||currentUser.orgId==3||currentUser.orgId==4)>
	leaderRowsNumber=10;
</#if>
//]]>
</script>
</head>
<body>
<form method="post" action="">
	<input type="hidden" name="today" id="today" value="${(currentUser.date)!!}"/>
	<#--	用户配置。功能暂未提供
	<div id="setting">
		<div id="panel">
			Panel<br />Panel<br />Panel<br />
		</div>
		<div id="tips">
			<a href="###">设 置</a>
		</div>
	</div><  !-- end #setting --  >
	-->
<#if (currentUser.orgId)?exists &&
	(currentUser.orgId==1||currentUser.orgId==2||currentUser.orgId==3||currentUser.orgId==4)>
		<table class="layoutTbl" style="margin-top:15px;table-layout: fixed;">
		<tr>
			<td>
				<div class="modbox type1" style="width:98%;margin-bottom: 7px;">
					<div class="modtitle">
						<h3 id="book2" class="bigfont"><a href="###"  onclick="openQuery('zxwj');return false;">最新文件</a>&nbsp;&nbsp;<font color="red"><span id="zxwj_rows">0</span></font>条</h3>
						<table border="0" cellpadding="0" cellspacing="0" style="margin-left:300px">
						  <tr>
						    <td class="s" >
						    	<a href="###" class="button" onclick="openQuery('zxwj');return false;">文件查询</a></span>
						    </td>
						  </tr>
						</table>
					</div>
					<div class="modboxin">
						<div class="loading">
							页面载入中，请稍候...
						</div>
						<ul class="modlist bigfont" id="zxwj_list">

						</ul>
					</div>
				</div><!-- end .modbox -->
			</td>

			<td>
				<div class="modbox type3" style="width:98%;margin-bottom: 7px;">
				<div class="modtitle">
					<h3 id="book2"  class="bigfont"><a href="###"  onclick="openQuery('xxsbPublication');return false;">最新刊物</a>&nbsp;&nbsp;<font color="red"><span id="xxsbPublication_rows">0</span></font>条</h3>
					<table border="0" cellpadding="0" cellspacing="0" style="margin-left:300px">
					  <tr>
					    <td class="s" >
					    	<a href="###" class="button" onclick="openQuery('xxsbPublication');return false;">刊物查询</a></span>
					    </td>
					  </tr>
					</table>
				</div>
				<div class="modboxin">
					<div class="loading">
						页面载入中，请稍候...
					</div>
					<ul class="modlist bigfont" id="xxsbPublication_list" >

					</ul>
				</div>
			</div><!-- end .modbox -->
			</td>
		</tr>

		<tr>
			<td>
				<div class="modbox type3" style="width:98%;margin-bottom: 7px;">
					<div class="modtitle">
						<h3 id="book2"  class="bigfont"><a href="###"  onclick="openQuery('latestPishi');return false;">最新批示</a>&nbsp;&nbsp;<font color="red"><span id="latestPishi_rows">0</span></font>条</h3>
						<table border="0" cellpadding="0" cellspacing="0" style="margin-left:300px">
						  <tr>
						    <td class="s" >
						    	<a href="###" class="button" onclick="openQuery('latestPishi');return false;">批示查询</a>
						    </td>
						  </tr>
						</table>
					</div>
					<div class="modboxin">
						<div class="loading">
							页面载入中，请稍候...
						</div>
						<ul class="modlist bigfont" id="latestPishi_list">

						</ul>
					</div>
				</div><!-- end .modbox -->
			</td>
			<td>
					<#--
					<div class="modbox type1" style="width:98%;margin-bottom: 7px;">
						<div class="modtitle">
							<h3 id="book1"  class="bigfont"><a href="###"  onclick="openQuery('toDealFile');return false;">待办文件</a>&nbsp;&nbsp;<font color="red"><span id="dbwj_rows">0</span></font>条</h3>
							<span class="more bigfont"><a href="###"  onclick="openQuery('toDealFile');return false;">待办查询</a></span>
						</div>
						<div class="modboxin">
							<div class="loading">
								页面载入中，请稍候...
							</div>
							<ul class="modlist bigfont" id="dbwj_list">

							</ul>
						</div>
					</div>
					-->
					<#--
					<div class="modbox type1" style="width:98%;margin-bottom: 7px;">
						<div class="modtitle">
							<h3 id="book1"  class="bigfont"><a href="###"  onclick="openQuery('toDutyDiary');return false;">值班日志</a>&nbsp;&nbsp;<font color="red"><span id="zbrz_rows">0</span></font>条</h3>
							<span class="more bigfont"><a href="###"  onclick="openQuery('toDutyDiary');return false;">值班查询</a></span>
						</div>
						<div class="modboxin">
							<div class="loading">
								页面载入中，请稍候...
							</div>
							<ul class="modlist bigfont" id="zbrz_list">

							</ul>
						</div>
					</div>
					-->

					<div class="modbox type1" style="width:98%;margin-bottom: 7px;">
						<div class="modtitle">
							<h3 id="book1"  class="bigfont"><a href="###"  onclick="openQuery('kldByLeader');return false;">最新资料</a>&nbsp;&nbsp;<font color="red"><span id="kldByLeader_rows">0</span></font>条</h3>
							<table border="0" cellpadding="0" cellspacing="0" style="margin-left:300px">
							  <tr>
							    <td class="s" >
							    	<a href="###" class="button" onclick="openQuery('kldByLeader');return false;">资料查询</a></span>
							    </td>
							  </tr>
							</table>
						</div>
						<div class="modboxin">
							<div class="loading">
								页面载入中，请稍候...
							</div>
							<ul class="modlist bigfont" id="kldByLeader_list">

							</ul>
						</div>
					</div>
			</td>
		</tr>
		<#--
		<tr>

			<td>
				<div class="modbox type1" style="width:98%;margin-bottom: 7px;">
					<div class="modtitle">
						<h3 id="book1"  class="bigfont"><a href="###"  onclick="openQuery('mail');return false;">最新邮件</a>&nbsp;&nbsp;<font color="red"><span id="mail_rows">0</span></font>条</h3>
						<span class="more bigfont"><a href="###"  onclick="openQuery('mail');return false;">邮件查询</a></span>
					</div>
					<div class="modboxin">
						<div class="loading">
							页面载入中，请稍候...
						</div>
						<ul class="modlist bigfont" id="mail_list">

						</ul>
					</div>
				</div>

			</td>

			<td>


			<div class="modbox type1" style="width:98%;margin-bottom: 7px;">
					<div class="modtitle">
						<h3 id="book2"  class="bigfont"><a href="###"  onclick="openQuery('planScheduler');return false;">日程安排</a>&nbsp;&nbsp;<font color="red"><span id="planScheduler_rows">0</span></font>条</h3>
						<span class="more bigfont"><a href="###"  onclick="openQuery('planScheduler');return false;">日程查询</a></span>
					</div>
					<div class="modboxin">
						<div class="loading">
							页面载入中，请稍候...
						</div>
						<ul class="modlist bigfont" id="planScheduler_list">

						</ul>
					</div>
				</div>
			</td>

		</tr>
		-->

	</table>

	<#else>
	<#-- 普通用户的页面 -->
	<table class="layoutTbl" style="margin-top:15px;table-layout: fixed;">
		<tr>
			<td style="width:80%">

				<#if currentUser?exists && (currentUser.roleCodes?seq_contains("onlySeeSfw")|| currentUser.roleCodes?seq_contains("onlySeeAllSfwAndPishi"))>
					<div class="modbox type1">
				        <div class="modtitle">
				            <h3 id="book2"><a href="###" onclick="openMore('sfFile');return false;">待办文件</a>&nbsp;&nbsp;<font
				                    color="red"><span id="sfFile_rows">0</span></font>条</h3>
				            <span class="more"><a href="###" onclick="openMore('sfFile');return false;">更多&gt;&gt;</a></span>
				        </div>
				        <div class="modboxin">
				            <div class="loading">
				                页面载入中，请稍候...
				            </div>
				            <ul class="modlist" id="sfFile_list">

				            </ul>
				        </div>
				    </div>
				    <!-- end .modbox -->
				<#else>
					<div class="modbox type1">
						<div class="modtitle">
							<h3 id="book1"><a href="###"  onclick="openMore('toDealFile');return false;">待办文件</a>&nbsp;&nbsp;<font color="red"><span id="dbwj_rows">0</span></font>条</h3>
							<span class="more"><a href="###"  onclick="openMore('toDealFile');return false;">更多&gt;&gt;</a></span>
						</div>
						<div class="modboxin">
							<div class="loading">
								页面载入中，请稍候...
							</div>
							<ul class="modlist" id="dbwj_list">

							</ul>
						</div>
					</div><!-- end .modbox -->
				</#if>
				<#if currentUser?exists && (currentUser.roleCodes?seq_contains("onlySeePishi")|| currentUser.roleCodes?seq_contains("onlySeeAllSfwAndPishi")) >
				 <div class="modbox type1">
			        <div class="modtitle">
			            <h3 id="book2"><a href="###" onclick="openMore('psFile');return false;">待办事宜</a>&nbsp;&nbsp;<font
			                    color="red"><span id="psFile_rows">0</span></font>条</h3>
			            <span class="more"><a href="###" onclick="openMore('psFile');return false;">更多&gt;&gt;</a></span>
			        </div>
			        <div class="modboxin">
			            <div class="loading">
			                页面载入中，请稍候...
			            </div>
			            <ul class="modlist" id="psFile_list">

			            </ul>
			        </div>
			    </div>
			    <!-- end .modbox -->
				<#else>
				<div class="modbox type1">
					<div class="modtitle">
						<h3 id="bell"><a href="###" onclick="openMore('toDeal');return false;">待办事宜</a>&nbsp;&nbsp;<font color="red"><span id="dbsy_rows">0</span></font>条</h3>
						<span class="more"><a href="###" onclick="openMore('toDeal');return false;">更多&gt;&gt;</a></span>
					</div>
					<div class="modboxin">
						<div class="loading">
							页面载入中，请稍候...
						</div>
						<ul class="modlist" id="dbsy_list">

						</ul>
					</div>
				</div><!-- end .modbox -->
				</#if>
				
				<!-- 最多一星期 -->
				<div class="modbox type1">
					<div class="modtitle">
						<h3 id="book2"><a href="###"  onclick="openMore('week_todo');return false;">最多一星期-待办事项</a>&nbsp;&nbsp;<font color="red"><span id="week_todo_rows">0</span></font>条</h3>
						<span class="more"><a href="###"  onclick="openMore('week_todo');return false;">更多&gt;&gt;</a></span>
					</div>
					<div class="modboxin">
						<div class="loading">
							页面载入中，请稍候...
						</div>
						<ul class="modlist" id="week_todo_list">

						</ul>
					</div>
				</div><!-- end .modbox -->
				<!-- end of 最多一星期 -->
				
				<!-- 最多一星期 -->
				<div class="modbox type1">
					<div class="modtitle">
						<h3 id="book2"><a href="###"  onclick="openMore('week_check');return false;">最多一星期-待办审核</a>&nbsp;&nbsp;<font color="red"><span id="week_check_rows">0</span></font>条</h3>
						<span class="more"><a href="###"  onclick="openMore('week_check');return false;">更多&gt;&gt;</a></span>
					</div>
					<div class="modboxin">
						<div class="loading">
							页面载入中，请稍候...
						</div>
						<ul class="modlist" id="week_check_list">

						</ul>
					</div>
				</div><!-- end .modbox -->
				<!-- end of 最多一星期 -->
				
				<div class="modbox type1">
					<div class="modtitle">
						<h3 id="book2"><a href="###"  onclick="openMore('zxwj');return false;">最新文件</a>&nbsp;&nbsp;<font color="red"><span id="zxwj_rows">0</span></font>条</h3>
						<span class="more"><a href="###"  onclick="openMore('zxwj');return false;">更多&gt;&gt;</a></span>
					</div>
					<div class="modboxin">
						<div class="loading">
							页面载入中，请稍候...
						</div>
						<ul class="modlist" id="zxwj_list">

						</ul>
					</div>
				</div><!-- end .modbox -->
				<div class="modbox type1">
					<div class="modtitle">
						<h3 id="book2"><a href="###"  onclick="openMore('toReadFile');return false;">待阅文件</a>&nbsp;&nbsp;<font color="red"><span id="dywj_rows">0</span></font>条</h3>
						<span class="more"><a href="###"  onclick="openMore('toReadFile');return false;">更多&gt;&gt;</a></span>
					</div>
					<div class="modboxin">
						<div class="loading">
							页面载入中，请稍候...
						</div>
						<ul class="modlist" id="dywj_list">

						</ul>
					</div>
				</div><!-- end .modbox -->

				<div class="modbox type1">
					<div class="modtitle">
						<h3 id="book2"><a href="###"  onclick="openMore('gzjh');return false;">工作计划</a>&nbsp;&nbsp;<font color="red"><span id="gzjh_rows">0</span></font>条</h3>
						<span class="more"><a href="###"  onclick="openMore('gzjh');return false;">更多&gt;&gt;</a></span>
					</div>
					<div class="modboxin">
						<div class="loading">
							页面载入中，请稍候...
						</div>
						<ul class="modlist" id="gzjh_list">

						</ul>
					</div>
				</div><!-- end .modbox -->
				<div class="modbox type1">
					<div class="modtitle">
						<h3 id="book2"><a href="###"  onclick="openMore('gzzj');return false;">工作总结</a>&nbsp;&nbsp;<font color="red"><span id="gzzj_rows">0</span></font>条</h3>
						<span class="more"><a href="###"  onclick="openMore('gzzj');return false;">更多&gt;&gt;</a></span>
					</div>
					<div class="modboxin">
						<div class="loading">
							页面载入中，请稍候...
						</div>
						<ul class="modlist" id="gzzj_list">

						</ul>
					</div>
				</div><!-- end .modbox -->

<#--===============================================================================================
				<div class="modbox type1">
					<div class="modtitle">
						<h3 id="block">最新资料</h3>
						<span class="more"><a href="###"  onclick="openMore('kld');return false;">更多&gt;&gt;</a></span>
					</div>
					<div class="modboxin">
						<div class="loading">
							页面载入中，请稍候...
						</div>
						<ul class="modlist" id="kld_list">

						</ul>
					</div>
				</div><!-  - end .modbox -  ->

				<div class="modbox type1">
					<div class="modtitle">
						<h3 id="mail">最新邮件&nbsp;&nbsp;<font color="red"><span id="email_rows">0</span></font>条</h3>
						<span class="more"><a href="###"  onclick="openMore('mail');return false;">更多&gt;&gt;</a></span>
					</div>
					<div class="modboxin">
						<div class="loading">
							页面载入中，请稍候...
						</div>
						<ul class="modlist" id="email_list">

						</ul>
					</div>
				</div><!-  - end .modbox -  ->

				<!- -	日历	-  ->
				<div id="mini_here" style="width:200px"></div>
				<div id="scheduler_here" class="dhx_cal_container" style='width:300px; height:300px; display:none;'>
			    	<div class="dhx_cal_navline">
			   			<div class="dhx_cal_date"></div>
			 			<div class="dhx_cal_tab" name="day_tab" style="right:76px;"></div>
					</div>
					<div class="dhx_cal_header"></div>
					<div class="dhx_cal_data"></div>
				</div>

=====================================================================================================-->
			<!--
				<div id="m_misc" class="modbox type2">
					<div class="modtitle">
						<h3 id="block">相关信息</h3>
						<ul class="subchannel">
							<li class="current"><a href="###">最新邮件<font color="red"><span>0</span></font></a></li>
							<li><a href="###">公共资料<font color="red"><span>0</span></font></a></li>
							<li><a href="###">我的资料<font color="red"><span>0</span></font></a></li>
							<li><a href="###">日程安排<font color="red"><span>0</span></font></a></li>
						</ul>
						<span class="more"><a href="###" onclick="moreInfo(0);">更多&gt;&gt;</a></span>
					</div>
					<div class="modboxin mod block">
						<div class="loading">
							页面载入中，请稍候...
						</div>
						<ul class="modlist">

						</ul>
					</div>
					<div class="modboxin mod">
						<div class="loading">
							页面载入中，请稍候...
						</div>
						<ul class="modlist">
							<li/><li/><li/><li/><li/>
						</ul>
					</div>
					<div class="modboxin mod">
						<div class="loading">
							页面载入中，请稍候...
						</div>
						<ul class="modlist">
							<li/><li/><li/><li/><li/>
						</ul>
					</div>
					<div class="modboxin mod">
						<div class="loading">
							页面载入中，请稍候...
						</div>
						<ul class="modlist">
							<li/><li/><li/><li/><li/>
						</ul>
					</div>
				</div><!-- end .modbox -->

			</td>

				<td style="width:20%">
				<div class="modbox type3" style="width:100%;margin-bottom: 7px;">
					<div class="modtitle">
						<h3 id="book1"><a href="###"  onclick="openMore('tips');return false;">最新小贴士</a>&nbsp;&nbsp;<font color="red"><span id="tips_rows">0</span></font>条</h3>
						<span class="more"><a href="###"  onclick="openMore('tips');return false;">更多&gt;&gt;</a></span>
					</div>
					<div class="modboxin">
						<div class="loading">
							页面载入中，请稍候...
						</div>
						<ul class="modlist" id="tips_list">

						</ul>
					</div>
				</div><!-- end .modbox -->

				<div class="modbox type3" style="width:100%;margin-bottom: 7px;">
					<div class="modtitle">
						<h3 id="book1"><a href="###"  onclick="openMore('mail');return false;">最新邮件</a>&nbsp;&nbsp;<font color="red"><span id="mail_rows">0</span></font>条</h3>
						<span class="more"><a href="###"  onclick="openMore('mail');return false;">更多&gt;&gt;</a></span>
					</div>
					<div class="modboxin">
						<div class="loading">
							页面载入中，请稍候...
						</div>
						<ul class="modlist" id="mail_list">

						</ul>
					</div>
				</div><!-- end .modbox -->

				<div class="modbox type3" style="width:100%;margin-bottom: 7px;">
					<div class="modtitle">
						<h3 id="book2"><a href="###"  onclick="openMore('xxsbPublication');return false;">最新刊物</a>&nbsp;&nbsp;<font color="red"><span id="xxsbPublication_rows">0</span></font>条</h3>
						<span class="more"><a href="###"  onclick="openMore('xxsbPublication');return false;">更多&gt;&gt;</a></span>
					</div>
					<div class="modboxin">
						<div class="loading">
							页面载入中，请稍候...
						</div>
						<ul class="modlist" id="xxsbPublication_list">

						</ul>
					</div>
				</div><!-- end .modbox -->

				<div class="modbox type3" style="width:100%;">
					<div class="modtitle">
						<h3 id="book2"><a href="###"  onclick="openMore('planScheduler');return false;">日程安排</a>&nbsp;&nbsp;<font color="red"><span id="planScheduler_rows">0</span></font>条</h3>
						<span class="more"><a href="###"  onclick="openMore('planScheduler');return false;">更多&gt;&gt;</a></span>
					</div>
					<div class="modboxin">
						<div class="loading">
							页面载入中，请稍候...
						</div>
						<ul class="modlist" id="planScheduler_list">

						</ul>
					</div>
				</div><!-- end .modbox -->
			</td>
		</tr>
	</table>
</#if>
</form>
<#-- 在homepage.js在头部加载 始终无法获取在文件头声明的leaderRowsNumber
	  因为homepage.js先于声明就加载了，需要移到文档后才能正常获取leaderRowsNumber
 -->
<script type="text/javascript" src="${request.contextPath}/skin/${skin}/homePage.js"></script>

<div id="tipsContent" style="display:none;">
</div>
</body>
</html>